home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / xgui / sources / ui_inversion.ph < prev    next >
Encoding:
Text File  |  1994-04-25  |  3.4 KB  |  86 lines

  1. /*****************************************************************************
  2.   FILE           : ui_inversion.ph
  3.   SHORTNAME      : inversion.h
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : Header file of correspondent '.c' file
  7.   NOTES          :
  8.  
  9.   AUTHOR         : Guenter Mamier 
  10.   DATE           : 29.01.92
  11.  
  12.   CHANGED BY     : Sven Doering
  13.   IDENTIFICATION : @(#)ui_inversion.ph    1.11 3/2/94
  14.   SCCS VERSION   : 1.11
  15.   LAST CHANGE    : 3/2/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.  
  19. ******************************************************************************/
  20.  
  21. #ifndef _UI_INVERSION_DEFINED_
  22. #define _UI_INVERSION_DEFINED_
  23.  
  24. /* begin global definition section */
  25.  
  26. void ui_inversion(Widget button, caddr_t call_data);
  27. int INVERS_CREATED = 0;               /* TRUE if display exists      */
  28. Widget ui_InvRootWidget;              /* root widget for inversion   */
  29.  
  30. /* end global definition section */
  31.  
  32.  
  33. /* begin private definition section */
  34.  
  35. /* required functions that are declared here */
  36. static void ui_start_inversion(Widget button, caddr_t call_data),
  37.             ui_stop_inversion(Widget button, caddr_t call_data),
  38.             ui_closeDisplay(Widget w, caddr_t call_data),
  39.             ui_invNew(Widget w, caddr_t call_data),
  40.             ui_drawInput(void),
  41.             ui_invSetup(Widget button, caddr_t call_data),
  42.             ui_invEvent(Widget w, Display *display, XEvent *event),
  43.             ui_invHelp(Widget button, Boolean fromMain, caddr_t call_data),
  44.             ui_inv_helpDone(Widget button, caddr_t call_data),
  45.             ui_inv_popupDone(Widget button, caddr_t call_data);
  46. static Boolean ui_do_inversion(Widget button, caddr_t call_data);
  47. static int  ui_set_IO_units(void);
  48.  
  49. /* global variables for this file */
  50.  
  51. static struct UnitList *inputs,              /* handle for input units      */
  52.                        *outputs;             /* handle for output units     */
  53.  
  54. static Widget          ui_invpop,            /* setup widget               */
  55.                        inPatW,               /* dialog widget for input pat*/
  56.                        etaW,                 /*   "      "    for eta      */
  57.                        delta_maxW,           /*   "      "    for delta    */
  58.                        ratioW;               /*   "      "    for 2nd appr.*/
  59.  
  60. static int      INV_NEW        = 1;          /* TRUE for restart            */
  61. static int      INV_RUNNING    = 0;          /* TRUE while inv loops        */
  62. static int      INV_cycle      = 0;          /* counts the inv. cycles      */
  63. static int      INV_units      = 0;          /* counts faulty output units  */
  64. static double   INV_error;                   /* counts net inv. error       */
  65. static float    INPUT_PAT      = 0.0;        /* stores UnitList.i_act       */
  66. static float    RATIO          = 0.5;        /* stores 2nd aprox. ratio     */  
  67. static float    INV_delta_max  = 0.1;        /* maximum output unit error   */
  68. static float    INV_eta        = 2.0;        /* learn parameter             */
  69. static XtWorkProcId  ui_workProcId = (XtWorkProcId)NULL; 
  70.                            /* work id of inversion   */
  71. static FlagType      ui_workType;                  /* not used here          */
  72.  
  73. /* variables for Xlib */
  74. static int                    inv_screen;    /* X screen                   */
  75. static Display                *inv_display;  /* actual "setenv DISPLAY"    */
  76.  
  77. static struct Ui_DisplayType *displayPtr;
  78.  
  79. /* end private definition section */
  80.  
  81.  
  82.  
  83.  
  84.  
  85. #endif
  86.